package com.chaos.auth.config.converter;

import lombok.extern.slf4j.Slf4j;
import org.springframework.security.core.Authentication;
import org.springframework.security.oauth2.provider.token.DefaultUserAuthenticationConverter;
import org.springframework.stereotype.Component;

import java.util.Map;


@Component
@Slf4j
public class UserAuthenticationConverter extends DefaultUserAuthenticationConverter {


    @Override
    public Map<String, ?> convertUserAuthentication(Authentication authentication) {
        return super.convertUserAuthentication(authentication);
    }

    @Override
    public Authentication extractAuthentication(Map<String, ?> map) {
        return super.extractAuthentication(map);
    }

}
